package com.equipment.management.service;

import com.equipment.management.entity.Mainframe;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;


public interface MainframeService {

    PageInfo<Mainframe> findAllMainframe(int pageNum, int pageSize,String room_num);

    int addMainframe(Mainframe Mainframe) throws Exception;

    int deleteMainframe(List<String> id );

    Mainframe getMainframeByCode(String code);

    List<Mainframe> getAllmainframe();

    List<String> getAllPort(String port);

    List<String> getAllType(String type);

    void updateInitMainframe(String topic, List<String> list, String operate, String random);

    void updateMainframeResult(String topic, String payload, String s, List<String> list, String random);

    void closeMainframeResult(String topic, String operate);

    Map getCountByType();

    Map getCountByLevel(String floor_level);

    List<Map> getAllFloorRoom(String floor_level, String room_num);

    int getScanMainFrame(List<String> list);

    PageInfo<Map> getLog(int pageNum,int pageSize,String code, String operate);

    PageInfo<Map> getMessage(int pageNum,int pageSize,String operate);

    void updateMessage(String id);
}
